<?php
// +----------------------------------------------------------------------
// | NewThink [ Think More,Think Better! ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2018 http://www.newthink.cc All rights reserved.
// +----------------------------------------------------------------------
// | 版权所有：山西创泰网络科技有限公司
// +----------------------------------------------------------------------
// | Author: JiYun Date:2019-05-09 Time:11:38
// +----------------------------------------------------------------------

namespace app\common\model\system;

use app\common\model\BaseModel;
use Think\Db;

/**
 * Class SystemUserLoginLog
 * @author JiYun On 2019/05/09
 * @package app\common\model
 */
final class SystemUserLoginLog extends BaseModel
{
    protected $table = 'system_user_login_log';
    
    public function __construct()
    {
        parent::__construct();
    }
    
    /**
     * 登录日志的写入
     * @author JiYun On 2019/05/09
     * @param array $logData
     */
    public function saveLog($logData = [])
    {
        Db::name($this->table)
            ->data($logData)
            ->insert();
    }
}
